#pragma once
#include "../Card.h"
#include "../Decor.h"
#include "../pch.h"
#include "../DeckCard.h"

namespace Poker
{
    struct Render
    {
        const char *GetCode(const Decor &decor)
        {
            return DecorCodes[(int)decor];
        };
        void DemoDecor()
        {
            LOGI("Red Heart %s", Poker::DecorCodes[(int)Poker::Decor::Heart]);
            LOGI("Spade %s", Poker::DecorCodes[(int)Poker::Decor::Spade]);
            LOGI("Diamond %s", Poker::DecorCodes[(int)Poker::Decor::Diamond]);
            LOGI("Plum Blossom %s", Poker::DecorCodes[(int)Poker::Decor::Plum_blossom]);
        }
        void Console(const Poker::Card &card)
        {
            printf("%s %s", GetCode(card.decor), card.numChar.c_str());
        }
        void Console(const Poker::DeckCard &deckCard)
        {
            for(const auto& card:deckCard.m_Cards)
            {
                Console(card);
            }
        }
    };
};